package com.zhongge.preknow.single;

/**
 * @ClassName Test
 * @Description TODO
 * @Author zhongge
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        EagerSingle eagerSingle1 = EagerSingle.getInstance();
        EagerSingle eagerSingle2 = EagerSingle.getInstance();
        System.out.println(eagerSingle1);
        System.out.println(eagerSingle2);
        System.out.println("================");
        LazySingle lazySingle1 = LazySingle.getInstance();
        LazySingle lazySingle2 = LazySingle.getInstance();
        System.out.println(lazySingle1);
        System.out.println(lazySingle2);
    }
}
